//
//  ImageCompressTool.h
//  QQMiniGameSDKDemo
//
//  Created by Goyoungs on 2023/5/24.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN

@interface ImageCompressTool : NSObject

/// 压缩图片到指定大小
/// - Parameters:
///   - image: 图片
///   - maxLength: 指定大小
///   - times: 压缩次数
+ (NSData *)compressImageSize:(UIImage *)image toByte:(NSUInteger)maxLength times:(NSInteger)times;
@end

NS_ASSUME_NONNULL_END
